package com.bsierp.business.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * OrderState entity. @author MyEclipse Persistence Tools
 */

public class OrderState implements java.io.Serializable {

    // Fields

    private Integer orderstateId;
    private String orderstateName;
    private Set orders = new HashSet(0);
    private Set orderHistories = new HashSet(0);

    // Constructors

    /** default constructor */
    public OrderState() {
    }

    /** minimal constructor */
    public OrderState(String orderstateName) {
        this.orderstateName = orderstateName;
    }

    /** full constructor */
    public OrderState(String orderstateName, Set orders, Set orderHistories) {
        this.orderstateName = orderstateName;
        this.orders = orders;
        this.orderHistories = orderHistories;
    }

    // Property accessors

    public Integer getOrderstateId() {
        return this.orderstateId;
    }

    public void setOrderstateId(Integer orderstateId) {
        this.orderstateId = orderstateId;
    }

    public String getOrderstateName() {
        return this.orderstateName;
    }

    public void setOrderstateName(String orderstateName) {
        this.orderstateName = orderstateName;
    }

    public Set getOrders() {
        return this.orders;
    }

    public void setOrders(Set orders) {
        this.orders = orders;
    }

    public Set getOrderHistories() {
        return this.orderHistories;
    }

    public void setOrderHistories(Set orderHistories) {
        this.orderHistories = orderHistories;
    }

}